$(document).ready(function(){
    $('header ul li a').click(function(){
        dimension = $(this).attr('data-dimension').split('|');
        var key=$(this).attr('class');
        switch(key)
            {
            case 'turn-off':
                window.parent.closeColorBox();
                break;
            case 'maximum':
                window.parent.maximumColorBox();
                break;
            case 'minimum':
                window.parent.minimumColorBox(dimension[0],dimension[1]);
                break;
            case 'dropdown':
                window.parent.minimumColorBox(dimension[0],dimension[1]);
                break;
            default:
                break;
            }
    });
});